<!DOCTYPE html>
<html lang="en">

<head>
  {include file="common/meta" /}
</head>

<body>
  <div class="x-body layui-anim layui-anim-up">
    <blockquote class="layui-elem-quote">欢迎管理员：
      <span class="x-red">
        {$LoginAdmin['nickname']}
      </span>！当前时间：{:date("Y-m-d H:i", time())}
    </blockquote>
    <fieldset class="layui-elem-field">
      <legend>数据统计</legend>
      <div class="layui-field-box">
        <div class="layui-col-md12">
          <div class="layui-card">
            <div class="layui-card-body">
              <div class="layui-carousel x-admin-carousel x-admin-backlog" lay-anim="" lay-indicator="inside"
                lay-arrow="none" style="width: 100%; height: 90px;">
                <div carousel-item="">
                  <ul class="layui-row layui-col-space10 layui-this">
                    <li class="layui-col-xs2">
                      <a href="{:url('admin/admin/index')}" class="x-admin-backlog-body">
                        <h3>会员数</h3>
                        <p>
                          <cite>{$UserCount}</cite>
                        </p>
                      </a>
                    </li>
                    <li class="layui-col-xs2">
                      <a href="{:url('admin/post.post/index')}" class="x-admin-backlog-body">
                        <h3>帖子数</h3>
                        <p>
                          <cite>{$PostCount}</cite>
                        </p>
                      </a>
                    </li>
                    <li class="layui-col-xs2">
                      <a href="{:url('admin/comment/index')}" class="x-admin-backlog-body">
                        <h3>回复数</h3>
                        <p>
                          <cite>{$CommentCount}</cite>
                        </p>
                      </a>
                    </li>
                    <li class="layui-col-xs2">
                      <a href="{:url('admin/recharge/index')}" class="x-admin-backlog-body">
                        <h3>充值数</h3>
                        <p>
                          <cite>{$RechargeCount}</cite>
                        </p>
                      </a>
                    </li>
                    <li class="layui-col-xs2">
                      <a href="javascript:;" class="x-admin-backlog-body">
                        <h3>订单数</h3>
                        <p>
                          <cite>{$OrderCount}</cite>
                        </p>
                      </a>
                    </li>
                    <li class="layui-col-xs2">
                      <a href="{:url('admin/product/index')}" class="x-admin-backlog-body">
                        <h3>商品数</h3>
                        <p>
                          <cite>{$ProductCount}</cite>
                        </p>
                      </a>
                    </li>
                  </ul>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </fieldset>

    <fieldset class="layui-elem-field">
      <legend>系统信息</legend>
      <div class="layui-field-box">
        <table class="layui-table">
          <tbody>
            <tr>
              <th>服务器地址</th>
              <td>
                <?php echo $_SERVER['HTTP_HOST']; ?>
              </td>
            </tr>
            <tr>
              <th>操作系统</th>
              <td>
                <?php echo PHP_OS; ?>
              </td>
            </tr>
            <tr>
              <th>PHP版本</th>
              <td>
                <?php echo PHP_VERSION; ?>
              </td>
            </tr>
            <tr>
              <th>PHP运行方式</th>
              <td>
                <?php echo php_sapi_name(); ?>
              </td>
            </tr>
            <tr>
              <th>MYSQL版本</th>
              <td>{$MysqlVersion}</td>
            </tr>
            <tr>
              <th>ThinkPHP</th>
              <td>{$Think.version}</td>
            </tr>
            <tr>
              <th>上传附件限制</th>
              <td>
                <?php echo ini_get('upload_max_filesize'); ?>
              </td>
            </tr>
            <tr>
              <th>执行时间限制</th>
              <td>
                <?php echo ini_get('max_exeution_time'); ?>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
    </fieldset>
  </div>
</body>

</html>